Solve java.lang.UnsupportedClassVersionError:…Unsupported major.minor.52.0
I submited a job to a new server today. Well, I got this error which I never encountered before.
After google it, I figured it out. Version 52.0 stands for Java SE 1.8 which I used for local compile, while the JDK in this new server is
Two versions of JDK are not supportative in this case. So I recompiled the source code with lower version 1.7 and export again. Now it is hard running.
Well, another way to solve this issue is to upgrade the version of java in the server.